<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>media</title>
    <style> 
    body{
        margin:0;
        background-color: grey;
    }
    #media{
        width:100%;
        height:60px;
        background-color: black;
       
    }
    #mediaa{
        width:1000px;
        height:60px;
      margin: auto;
     
      display: flex;
      justify-content: space-between;
      line-height: 60px;
    }
    #mediaaa{
        width:300px;
        height:60px;
        display: flex;
      justify-content: space-around;
    }
    #mediaab{
      width:100px;
      height: 58px;
      border: 1px solid darkblue;
      border-radius: 50px;
      text-align: center;
    }
    @media only screen and (max-width: 900px){
       body{
           background-color: pink;
       }
        #media{
            display: none;
        }
    }
    </style>
</head>
<body>
    <div id="media">
         <div id="mediaa">

<div id="mediaaa">
    <a href="">java</a>
    <a href="">html</a>
    <a href="">php</a>
    <a href="">script</a>
    <a href="">css3 </a>

</div>
<div id="mediaab">
    <a href="">搜索</a>
</div>


         </div>

    </div>
</body>
</html>